package gui.popupmenu;

import gui.image.AlbumImageList;
import gui.image.ImagePanel;
import javax.swing.JMenuItem;

/**
 *
 * @author Quân
 */
public class AlbumImagePanelPopup extends ImagePanelPopup {

    public AlbumImagePanelPopup() {
    }

    public AlbumImagePanelPopup(ImagePanel imagePanel) {
        AlbumImageList albumImageList = (AlbumImageList) imagePanel.getParent().getParent();
        this.imagePanel = imagePanel;
        JMenuItem item = new JMenuItem("Remove from this album");
        item.addMouseListener(new DeleteFromAlbumMouseAdaptor(imagePanel, albumImageList));
        add(item);
    }
}
